package com.dropdb.demo.mapper;

import com.dropdb.demo.bean.Collect;
import com.dropdb.demo.bean.CollectExample;
import com.dropdb.demo.bean.vo.CollectGetListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CollectMapper {
    long countByExample(CollectExample example);

    int deleteByExample(CollectExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Collect record);

    int insertSelective(Collect record);

    List<Collect> selectByExample(CollectExample example);

    Collect selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Collect record, @Param("example") CollectExample example);

    int updateByExample(@Param("record") Collect record, @Param("example") CollectExample example);

    int updateByPrimaryKeySelective(Collect record);

    int updateByPrimaryKey(Collect record);

    List<CollectGetListVO> queryList(Integer userId, Integer type);

    Integer queryCollect(@Param("userId") Integer userId,@Param("type") Byte type,
                         @Param("valueId") Integer valueId);

    Collect selectCollect(@Param("userId") Integer userId,@Param("type") Byte type,
                          @Param("valueId") Integer valueId);
}